package com.baizhi.dao;

import com.baizhi.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Lenovo on 2019/6/19.
 */
public interface UserDao {

    //查询总数
    public int Total(@Param("userName") String userName);

    //分页查询
    public List<User> fenye(@Param("start") int start, @Param("rows") int rows, @Param("userName") String userName);


    public void update(@Param("userId") Integer userId, @Param("status") Integer status);

    //查询男女
    public List<Map> selectSexCount();

    //查询省份
    public List<Map> selectProvince();
}
